Skip to content

Entry read support local node rack awareness#4062

Open
hangc0276 wants to merge 3 commits intoapache:masterfrom
hangc0276:chenhang/read-with-rack-awareness
Open

Entry read support local node rack awareness#4062
hangc0276 wants to merge 3 commits intoapache:masterfrom
hangc0276:chenhang/read-with-rack-awareness

Conversation

@hangc0276
Copy link
Contributor

Motivation

  • The entry write supports the local node Rack-Aware placement policy but does not support the local node Region-Aware placement policy
  • The entry read supports the local node Region-Aware placement policy but does not support the local node Rack-Aware placement policy

In order to match the local node region/rack awareness both on entry write and read, we need to support the following feature

  • Entry write supports local node region awareness placement policy
  • Entry read supports local node rack awareness placement policy

Modification

The PR aims to support entry read local node awareness placement policy.

if (null == node || null == node.getAddr()) {
return UNKNOWN_RACK;
}
return node.getNetworkLocation();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the network location is /default-rack, shall we think of it as UNKNOWN_RACK?

@eolivelli eolivelli modified the milestones: 4.17.0, 4.18.0 Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants